#pragma once

#include "Sketch/Action/QSketchCurveAction.h"

class QSketchLineAction  : public QSketchCurveAction
{
	Q_OBJECT

public:
	QSketchLineAction(QSketchManager* parent, MainWindow* mainWindow);
	~QSketchLineAction();

	virtual void StartCreate() override;
	virtual void OnMouseMove(const gp_Pnt& point) override;
	virtual void OnLeftDown(const gp_Pnt& point) override;
	virtual void Reset() override;

protected:
	gp_Pnt m_startPoint;
	gp_Pnt m_endPoint;
	bool bIsConfirmStart = false;

	uint8_t m_startPointActorID = 255;
};
